﻿using FlyingHat.Core.Entities;
using FlyingHat.Repository.IRepository;
using FlyingHat.Service.IService;

namespace FlyingHat.Service.Service
{
    public class LogService : ILogService
    {
        private readonly ILogRepository logRepository;
        public LogService(ILogRepository logRepository)
        {
            this.logRepository = logRepository;
        }
        public async Task<long> AddReturnIdAsync(Log log)
        {
            return await logRepository.AddReturnIdAsync(log).ConfigureAwait(false);
        }
    }
}
